import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: process.env.CORDOVA_PLATFORM ? 'hash' : 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      component: () => import('./views/Login.vue')
    },
    {
      path: '/Login',
      component: () => import('./views/Login.vue')
    },
    {
      path: '/Home',
      component: () => import('./views/Home.vue')
    },
    {
      path: '/QrCodeLogin',
      component: () => import('./views/QrCodeLogin.vue')
    },
    {
      path: '/deliveryLogin',
      component: () => import('./views/receiveClothes/DeliveryLogin.vue')
    },
    {
      path: '/PriceList',
      component: () => import('./views/other/PriceList.vue')
    },
    {
      path: '/Cupboard',
      component: () => import('./views/laundry/Cupboard.vue')
    },
    {
      path: '/OpenCupboard',
      component: () => import('./views/OpenCupboard.vue')
    },
    {
      path: '/collectClothes',
      component: () => import('./views/receiveClothes/CollectClothes.vue')
    },
    {
      path: '/bindBag',
      component: () => import('./views/receiveClothes/BindBag.vue')
    },
    {
      path: '/collectConfirm',
      component: () => import('./views/receiveClothes/CollectConfirm.vue')
    },
    {
      path: '/cleanBox',
      component: () => import('./views/clean/CleanBox.vue')
    },
    {
      path: '/scanDelivery',
      component: () => import('./views/delivery/ScanDelivery.vue')
    },
    {
      path: '/deliveryConfirm',
      component: () => import('./views/delivery/DeliveryConfirm.vue')
    },
    {
      path: '/ClosedDoor',
      component: () => import('./views/laundry/ClosedDoor.vue')
    },
    {
      path: '/OrderCreated',
      component: () => import('./views/laundry/OrderCreated.vue')
    },
    {
      path: '/QrCodeTake',
      component: () => import('./views/take/QrCodeTake.vue')
    },
    {
      path: '/ScanCodeTake',
      component: () => import('./views/take/ScanCodeTake.vue')
    },
    {
      path: '/TakeOrderList',
      component: () => import('./views/take/TakeOrderList.vue')
    },
    {
      path: '/TakeOpenCupboard',
      component: () => import('./views/take/TakeOpenCupboard.vue')
    },
    {
      path: '/TookOrderList',
      component: () => import('./views/take/TookOrderList.vue')
    },
    {
      path: '/TookSuccess',
      component: () => import('./views/take/TookSuccess.vue')
    },
    {
      path: '/receiveOpenCupboard',
      component: () => import('./views/receiveClothes/ReceiveOpenCupboard.vue')
    },
    {
      path: '/deliveryCupboard',
      component: () => import('./views/delivery/DeliveryCupboard.vue')
    },
    {
      path: '/deliveryOpenCupboard',
      component: () => import('./views/delivery/DeliveryOpenCupboard.vue')
    },
    {
      path: '/cleanOpenCupboard',
      component: () => import('./views/clean/CleanOpenCupboard.vue')
    },
      {
          path: '/TestOpenCupboard',
          component: () => import('./views/TestOpenCupboard.vue')
      },
      {
          path: '/NoWashOpenDoor',
          component: () => import('./views/laundry/NoWashOpenDoor.vue')
      },
      {
          path: '/CalOrder',
          component: () => import('./views/laundry/CalOrder.vue')
      },
    {
      path: '/guide',
      component: () => import('./views/other/Guide.vue')
    },
  ]
})
